﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections.Specialized;

namespace MarketPlace.Web.Models
{
    public class SearchCondition
    {
        public string[] ContainsFields { get; set; }

        public string[] LessThanFields { get; set; }

        public string[] GreaterThanFields { get; set; }

        public string[] RangeFields { get; set; }

        public bool EnableGrouping { get; set; }
    }

    public class CoolListViewData
    {
        public string[] Fields { get; set; }

        public string[] EditableFields { get; set; }

        public string EditUrl { get; set; }

        public string[] Names { get; set; }

        public SearchCondition SearchCondition { get; set; }

        public bool AllowCreate { get; set; }

        public bool AllowEdit { get; set; }

        public bool AllowDelete { get; set; }

        public bool AllowSelect { get; set; }

        public string UpdateProxyUrl { get; set; }

        public string Dir { get; set; }

        public Coolite.Ext.Web.Button[] ActionButtons { get; set; }

        public NameValueCollection StoreParams { get; set; }
    }
}
